<!DOCTYPE html PUBLIC 
    "-//W3C//DTD XHTML 1.0 Transitional//EN" 
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    
<html 
	xmlns="http://www.w3.org/1999/xhtml" 
	xmlns:ui="http://java.sun.com/jsf/facelets" 
	xmlns:h="http://java.sun.com/jsf/html" 
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:t="http://myfaces.apache.org/tomahawk"> 

	<ui:component>

		<h:panelGroup id="newQueuePanel" rendered="#{brokerBean.newQueueView}">

		<table class="results" id="MQ_create_queue">
			<thead>
				<tr>
					<th colspan="2"><h:outputText value="#{msgs['mq.content.queue.title']}" /></th>
				</tr>								
				<tr>
					<h:panelGroup rendered="#{brokerBean.started}">
						<td colspan="2">
							<h:outputText value="#{msgs['mq.content.queue.subtitle']}" />
						</td>
					</h:panelGroup>
					<h:panelGroup rendered="#{!brokerBean.started}">					
						<td colspan="2">
							<h:outputText value="#{msgs['general.notavailable']}" />
						</td>
					</h:panelGroup>
				</tr>
				<tr>
					<td colspan="2" class="message">
						<h:outputText value="#{brokerNewDestinationActionHandler.message}"/>					
					</td>
				</tr>				
			</thead>	
			<h:panelGroup rendered="#{brokerBean.started}">
			<tbody class="results">
				<h:form id="queueform">
				<tr class="cells">
					<td width="200px"><h:outputText value="#{msgs['mq.content.queue.name']}"/></td>
					<td><h:inputText id="queue" type="text" value="#{brokerNewDestinationActionHandler.queue}"/></td>
				</tr>
				<tr class="cells">
					<td><h:outputText value="#{msgs['mq.content.queue.temp']}"/></td>
					<td><h:selectBooleanCheckbox id="cb_tempqueue" value="#{brokerNewDestinationActionHandler.temporary}"/></td>
				</tr>
				<tr class="even">
					<td colspan="2" align="right">
						<h:commandButton value="#{msgs['mq.menu.action.create']}" action="#{brokerNewDestinationActionHandler.createQueue}"/>
					</td>
				</tr>
				</h:form>
			</tbody>
			</h:panelGroup>	
		</table>
		<br/>
		<br/>
		
		</h:panelGroup>
		
	</ui:component>

</html>